package vn.com.shoppie.sobject;

import vn.com.shoppie.util.SUtilBitmap;
import android.content.Context;
import android.graphics.Bitmap;

import com.hoasua.adb.adbObject;

@SuppressWarnings("serial")
public class ShoppieObject extends adbObject{
	public ShoppieObject(int index, String[] values) {
		super(index, values);
	}

	public Bitmap getBitmap(Context context, String link) {
		
		// return SUtil.getInstance().getImageAsync(context, link);
		if (link != null)
			return SUtilBitmap.getInstance().getBitmap(context, link);
		else
			return null;
	}

	public interface ShoppieObjectColumn {
		public static final String _ID = "_id";
	}

	@Override
	public String[] getValues(){
		return values;
	}
}
